/***************************************************************************************************
 *
 * Project: ChinesePod
 *
 * Class: Definition
 *
 * File name: Definition.java
 *
 * Jul 23, 2007
 *
 **************************************************************************************************/

package com.eastmountain.chinese.db.flashcards.records;


public class ChineseCharacterProperties extends ChineseElementProperties {

    protected short    kangXiRadicalNumber  = 0;
    protected short    simplifiedRadical    = 0;
    protected short    additionalStrokes    = 0;

    public ChineseCharacterProperties() {

        super();

    }

    public ChineseCharacterProperties( String chineseCharacter, String simplifiedTraditional,
                                       int lessonNumber, String level,
                                       String lessonSection,
                                       String pinyin, String english,
                                       int kangXiRadicalNumber,
                                       int simplifiedRadical,
                                       int additionalStrokes ) {

        super( chineseCharacter, simplifiedTraditional, lessonNumber, level,
               lessonSection,
               pinyin, english );

        this.kangXiRadicalNumber  = (short)kangXiRadicalNumber;
        this.simplifiedRadical    = (short)simplifiedRadical;
        this.additionalStrokes    = (short)additionalStrokes;

    }

    public short getKangXiRadicalNumber() {

        return kangXiRadicalNumber;
    }

    public void setKangXiRadicalNumber( short kangXiRadicalNumber ) {

        this.kangXiRadicalNumber = kangXiRadicalNumber;
    }


    public short getSimplifiedRadical() {

        return simplifiedRadical;
    }


    public void setSimplifiedRadical( short simplifiedRadical ) {

        this.simplifiedRadical = simplifiedRadical;
    }

    public short getAdditionalStrokes() {

        return additionalStrokes;
    }

    public void setAdditionalStrokes( short additionalStrokes ) {

        this.additionalStrokes = additionalStrokes;
    }

    @Override
    public String toString() {

        String superString = super.toString();

        String elementProperties

            =   superString
                + "\nAdditional Character Properties -"
                + "\nKangXi radical:         " + getKangXiRadicalNumber()
                + "\nSimplified Radical:     " + getSimplifiedRadical()
                + "\nAdditional Strokes:     " + getAdditionalStrokes();

        return( elementProperties );

    }

}
